package atguigu.file;

public class FileCandidate2  implements FileCandidate{
    @Override
    public String[] candidateFileNames(String fileName) {
        // 从fileName 中 替换掉 黑马程序员匠心之作_C++教程从0到1入门编程,学习编程不再难 -
        String nFileName = "";
        if(fileName.startsWith("1-")){
            nFileName = fileName.replace("1-","1");
        }
        return new String[]{nFileName};
    }
}
